comparison libmpdemux/parse_es.c @ 17420:a9e2922e91fd

suppress error message at eof
author reimar
date Tue, 17 Jan 2006 20:45:51 +0000
parents 0b17629dbade
children 4d81dbdf46b9
comparison
equal deleted inserted replaced
17419:433e35de3b10 17420:a9e2922e91fd
23 // sync video stream, and returns next packet code 23 // sync video stream, and returns next packet code
24 int sync_video_packet(demux_stream_t *ds){ 24 int sync_video_packet(demux_stream_t *ds){
25 if (!videobuf_code_len) { 25 if (!videobuf_code_len) {
26 int skipped=0; 26 int skipped=0;
27 if (!demux_pattern_3(ds, NULL, MAX_SYNCLEN, &skipped, 0x100)) { 27 if (!demux_pattern_3(ds, NULL, MAX_SYNCLEN, &skipped, 0x100)) {
28 if (skipped == MAX_SYNCLEN)
28 mp_msg(MSGT_DEMUXER, MSGL_ERR, "parse_es: could not sync video stream!\n", skipped); 29 mp_msg(MSGT_DEMUXER, MSGL_ERR, "parse_es: could not sync video stream!\n", skipped);
29 goto eof_out; 30 goto eof_out;
30 } 31 }
31 next_nal = demux_getc(ds); 32 next_nal = demux_getc(ds);
32 if (next_nal < 0) 33 if (next_nal < 0)