jvdec: don't use deprecated url_feof()

Message ID 1300254382-12719-1-git-send-email-anton@khirnov.net
State Committed
Commit 1dac4d554734b16757b36a0adc71642c5ef2c4e6
Headers show

Commit Message

Anton Khirnov March 16, 2011, 5:46 a.m.
---
 libavformat/jvdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Kostya Shishkov March 16, 2011, 6:18 a.m. | #1
On Wed, Mar 16, 2011 at 06:46:22AM +0100, Anton Khirnov wrote:
> ---
>  libavformat/jvdec.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
> index 9235e51..175cd9f 100644
> --- a/libavformat/jvdec.c
> +++ b/libavformat/jvdec.c
> @@ -139,7 +139,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
>      AVIOContext *pb = s->pb;
>      AVStream *ast = s->streams[0];
>  
> -    while (!url_feof(s->pb) && jv->pts < ast->nb_index_entries) {
> +    while (!s->pb->eof_reached && jv->pts < ast->nb_index_entries) {
>          const AVIndexEntry *e   = ast->index_entries + jv->pts;
>          const JVFrame      *jvf = jv->frames + jv->pts;
>  
> -- 
> 1.7.4.1

ok

Patch

diff --git a/libavformat/jvdec.c b/libavformat/jvdec.c
index 9235e51..175cd9f 100644
--- a/libavformat/jvdec.c
+++ b/libavformat/jvdec.c
@@ -139,7 +139,7 @@  static int read_packet(AVFormatContext *s, AVPacket *pkt)
     AVIOContext *pb = s->pb;
     AVStream *ast = s->streams[0];
 
-    while (!url_feof(s->pb) && jv->pts < ast->nb_index_entries) {
+    while (!s->pb->eof_reached && jv->pts < ast->nb_index_entries) {
         const AVIndexEntry *e   = ast->index_entries + jv->pts;
         const JVFrame      *jvf = jv->frames + jv->pts;