Revision 3ff0daf0

View differences:

ffmpeg.c
299 299
                                is not defined */
300 300
    int64_t       pts;       /* current pts */
301 301
    int is_start;            /* is 1 at the start and after a discontinuity */
302
    int showed_multi_packet_warning;
302 303
} AVInputStream;
303 304

  
304 305
typedef struct AVInputFile {
......
1312 1313
        ist->pts= ist->next_pts;
1313 1314

  
1314 1315
        if(avpkt.size && avpkt.size != pkt->size &&
1315
           !(ist->st->codec->codec->capabilities & CODEC_CAP_SUBFRAMES) && verbose>0)
1316
           (!ist->showed_multi_packet_warning && verbose>0 || verbose>1)){
1316 1317
            fprintf(stderr, "Multiple frames in a packet from stream %d\n", pkt->stream_index);
1318
            ist->showed_multi_packet_warning=1;
1319
        }
1317 1320

  
1318 1321
        /* decode the packet if needed */
1319 1322
        decoded_data_buf = NULL; /* fail safe */

Also available in: Unified diff