diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-06-26 13:40:44 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-06-26 13:40:44 +0100 |
| commit | 3710ee5ea32841d3f62e52834aa2a55f026c6620 (patch) | |
| tree | 6ce6fa4b475a618533ca15cd78f2fbd2b274fc38 /rotord/libavwrapper.cpp | |
| parent | 8c6a4c2fb16cafdfabf30c2b755810fd01d049d8 (diff) | |
mirror node
Diffstat (limited to 'rotord/libavwrapper.cpp')
| -rwxr-xr-x | rotord/libavwrapper.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rotord/libavwrapper.cpp b/rotord/libavwrapper.cpp index 7f99668..0142e8f 100755 --- a/rotord/libavwrapper.cpp +++ b/rotord/libavwrapper.cpp @@ -355,7 +355,8 @@ bool libav::decoder::readNextFrameWithPacket(int targetFrameIndex, AVPacket& pac finished = 0; av_free_packet(&packet); int result; - if (!avtry(av_read_frame( container, &packet ), "Failed to read frame")) + //if (!avtry(av_read_frame( container, &packet ), "Failed to read frame")) + if (!avtry(av_read_packet( container, &packet ), "Failed to read packet")) return false; // !!NOTE: see docs on packet.convergence_duration for proper seeking if( packet.stream_index != videoStream ) /* Is it what we're trying to parse? */ continue; @@ -392,8 +393,8 @@ bool libav::decoder::readNextFrameWithPacket(int targetFrameIndex, AVPacket& pac if (packet.size == 0) // packet.size==0 usually means EOF break; } - //} while ( (!finished) || (pYuv->best_effort_timestamp < targetFrameIndex)); - } while (!finished); + } while ( (!finished) || (pYuv->best_effort_timestamp < targetFrameIndex)); + // } while (!finished); av_free_packet(&packet); |
