diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-04 17:38:05 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-04 17:42:44 +0400 |
commit | 2107009e7d351ff83a87fda161cc5269d2752428 (patch) | |
tree | 8be842789b566fdf3b97ab009cf3bb694a932464 /libavformat/avformat.h | |
parent | b288b4c63f32f34dce81ceb50fa1f3a31ef2960d (diff) |
lavf: move nb_decoded_frames out of info.
This way the variable is available outside find_stream_info
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 1614646aa5..58b02a6a80 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -741,7 +741,6 @@ typedef struct AVStream { int duration_count; double duration_error[2][2][MAX_STD_TIMEBASES]; int64_t codec_info_duration; - int nb_decoded_frames; int found_decoder; /** @@ -823,6 +822,12 @@ typedef struct AVStream { * Number of samples to skip at the start of the frame decoded from the next packet. */ int skip_samples; + + /** + * Number of internally decoded frames, used internally in libavformat, do not access + * its lifetime differs from info which is why its not in that structure. + */ + int nb_decoded_frames; } AVStream; #define AV_PROGRAM_RUNNING 1 |