You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avcodec/vc1_parser: stop splitting ENDOFSEQ markers into separate packets
The decode API can handle outputting delayed frames without relying on the parser splitting off the ENDOFSEQ marker. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -216,7 +216,8 @@ static int vc1_parse(AVCodecParserContext *s,
|
|||||||
if (!pic_found && (b == (VC1_CODE_FRAME & 0xFF) || b == (VC1_CODE_FIELD & 0xFF))) {
|
if (!pic_found && (b == (VC1_CODE_FRAME & 0xFF) || b == (VC1_CODE_FIELD & 0xFF))) {
|
||||||
pic_found = 1;
|
pic_found = 1;
|
||||||
}
|
}
|
||||||
else if (pic_found && b != (VC1_CODE_FIELD & 0xFF) && b != (VC1_CODE_SLICE & 0xFF)) {
|
else if (pic_found && b != (VC1_CODE_FIELD & 0xFF) && b != (VC1_CODE_SLICE & 0xFF)
|
||||||
|
&& b != (VC1_CODE_ENDOFSEQ & 0xFF)) {
|
||||||
next = i - 4;
|
next = i - 4;
|
||||||
pic_found = b == (VC1_CODE_FRAME & 0xFF);
|
pic_found = b == (VC1_CODE_FRAME & 0xFF);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
#include "version_major.h"
|
#include "version_major.h"
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_MINOR 17
|
#define LIBAVCODEC_VERSION_MINOR 17
|
||||||
#define LIBAVCODEC_VERSION_MICRO 100
|
#define LIBAVCODEC_VERSION_MICRO 101
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
||||||
LIBAVCODEC_VERSION_MINOR, \
|
LIBAVCODEC_VERSION_MINOR, \
|
||||||
|
|||||||
Reference in New Issue
Block a user