Commit e795d980 authored by michael's avatar michael

Print "Multiple frames in a packet" warning independant of CODEC_CAP_SUBFRAMES

because CODEC_CAP_SUBFRAMES is primarely misused to hide this warning otherwise
which renders the flag completely useless.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21480 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a6b158d8
......@@ -299,6 +299,7 @@ typedef struct AVInputStream {
is not defined */
int64_t pts; /* current pts */
int is_start; /* is 1 at the start and after a discontinuity */
int showed_multi_packet_warning;
} AVInputStream;
typedef struct AVInputFile {
......@@ -1312,8 +1313,10 @@ static int output_packet(AVInputStream *ist, int ist_index,
ist->pts= ist->next_pts;
if(avpkt.size && avpkt.size != pkt->size &&
!(ist->st->codec->codec->capabilities & CODEC_CAP_SUBFRAMES) && verbose>0)
(!ist->showed_multi_packet_warning && verbose>0 || verbose>1)){
fprintf(stderr, "Multiple frames in a packet from stream %d\n", pkt->stream_index);
ist->showed_multi_packet_warning=1;
}
/* decode the packet if needed */
decoded_data_buf = NULL; /* fail safe */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment