On 02/03/2012 02:13 PM, Paul B Mahol wrote:

> From: Joakim Plate <[email protected]>
> 
> Signed-off-by: Paul B Mahol <[email protected]>
> ---
>  libavformat/r3d.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/r3d.c b/libavformat/r3d.c
> index 7f0e8de..2674578 100644
> --- a/libavformat/r3d.c
> +++ b/libavformat/r3d.c
> @@ -366,7 +366,8 @@ static int r3d_seek(AVFormatContext *s, int stream_index, 
> int64_t sample_time, i
>              frame_num, sample_time);
>  
>      if (frame_num < r3d->video_offsets_count) {
> -        avio_seek(s->pb, r3d->video_offsets_count, SEEK_SET);
> +        if (avio_seek(s->pb, r3d->video_offsets_count, SEEK_SET) < 0)
> +            return -1;
>      } else {
>          av_log(s, AV_LOG_ERROR, "could not seek to frame %d\n", frame_num);
>          return -1;


lgtm.

-Justin

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to