Skip to content

Commit

Permalink
avcodec/decode: move the ff_decode_frame_props() prototype to the pro…
Browse files Browse the repository at this point in the history
…per header

Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed Aug 20, 2020
1 parent 86f5fd4 commit c56d787
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions libavcodec/decode.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ typedef struct FrameDecodeData {
*/
int ff_decode_get_packet(AVCodecContext *avctx, AVPacket *pkt);

/**
* Set various frame properties from the codec context / packet data.
*/
int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame);

/**
* Called during avcodec_open2() to initialize avctx->internal->bsf.
* The bsf should be freed with av_bsf_free().
Expand Down
5 changes: 0 additions & 5 deletions libavcodec/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,6 @@ int ff_side_data_update_matrix_encoding(AVFrame *frame,
*/
int ff_get_format(AVCodecContext *avctx, const enum AVPixelFormat *fmt);

/**
* Set various frame properties from the codec context / packet data.
*/
int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame);

/**
* Add a CPB properties side data to an encoding context.
*/
Expand Down
1 change: 1 addition & 0 deletions libavcodec/libvpxdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#include "decode.h"
#include "internal.h"
#include "libvpx.h"
#include "profiles.h"
Expand Down
1 change: 1 addition & 0 deletions libavcodec/mmaldec.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <stdatomic.h>

#include "avcodec.h"
#include "decode.h"
#include "hwconfig.h"
#include "internal.h"
#include "libavutil/avassert.h"
Expand Down
1 change: 1 addition & 0 deletions libavcodec/qtrle.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <string.h>

#include "avcodec.h"
#include "decode.h"
#include "bytestream.h"
#include "internal.h"

Expand Down
1 change: 1 addition & 0 deletions libavcodec/rawdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

#include "avcodec.h"
#include "bswapdsp.h"
#include "decode.h"
#include "get_bits.h"
#include "internal.h"
#include "raw.h"
Expand Down

0 comments on commit c56d787

Please sign in to comment.