mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-02 05:23:14 +08:00
avfilter/src_movie: Remove unneeded resetting of AVPacket
av_read_frame() already returns clean packets on error. Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
@@ -495,7 +495,6 @@ static int movie_push_frame(AVFilterContext *ctx, unsigned out_id)
|
|||||||
} else {
|
} else {
|
||||||
ret = av_read_frame(movie->format_ctx, &movie->pkt0);
|
ret = av_read_frame(movie->format_ctx, &movie->pkt0);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
av_init_packet(&movie->pkt0); /* ready for flushing */
|
|
||||||
*pkt = movie->pkt0;
|
*pkt = movie->pkt0;
|
||||||
if (ret == AVERROR_EOF) {
|
if (ret == AVERROR_EOF) {
|
||||||
movie->eof = 1;
|
movie->eof = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user