Mercurial > libavformat.hg
comparison v4l2.c @ 2549:0cc87456f0ad libavformat
Forward error code when reading a v4l2 frame
Patch by Benoit Fouet (benoit.fouet AT purplelabs DOT com)
author | lucabe |
---|---|
date | Thu, 13 Sep 2007 12:46:30 +0000 |
parents | b21c2af60bc9 |
children |
comparison
equal
deleted
inserted
replaced
2548:276257e703af | 2549:0cc87456f0ad |
---|---|
606 res = read_frame(s1, pkt); | 606 res = read_frame(s1, pkt); |
607 } else { | 607 } else { |
608 return AVERROR(EIO); | 608 return AVERROR(EIO); |
609 } | 609 } |
610 if (res < 0) { | 610 if (res < 0) { |
611 return AVERROR(EIO); | 611 return res; |
612 } | 612 } |
613 | 613 |
614 if (s1->streams[0]->codec->coded_frame) { | 614 if (s1->streams[0]->codec->coded_frame) { |
615 s1->streams[0]->codec->coded_frame->interlaced_frame = 1; | 615 s1->streams[0]->codec->coded_frame->interlaced_frame = 1; |
616 s1->streams[0]->codec->coded_frame->top_field_first = s->top_field_first; | 616 s1->streams[0]->codec->coded_frame->top_field_first = s->top_field_first; |