History

avformat/vobsub: remove pointless FAIL macro.

Clément Bœsch committed 12 years ago

Commit 6a3a7d71 parent 97edb191 file · +2 −4Browse files

Unified · Split

libavformat/mpeg.c+2−4
@@ -828,8 +828,6 @@ end: · 827 unmodified lines
828828 return ret;
829829 }
830830
831−#define FAIL(r) do { ret = r; goto fail; } while (0)
832−
833831 static int vobsub_read_packet(AVFormatContext *s, AVPacket *pkt)
834832 {
835833 MpegDemuxContext *vobsub = s->priv_data;
@@ -878,7 +876,7 @@ static int vobsub_read_packet(AVFormatContext *s, AVPacket *pkt) · 42 unmodified lines
878876 if (ret < 0) {
879877 if (pkt->size) // raise packet even if incomplete
880878 break;
881− FAIL(ret);
879+ goto fail;
882880 }
883881 to_read = ret & 0xffff;
884882 new_pos = avio_tell(pb);
@@ -895,7 +893,7 @@ static int vobsub_read_packet(AVFormatContext *s, AVPacket *pkt) · 10 unmodified lines
895893
896894 ret = av_grow_packet(pkt, to_read);
897895 if (ret < 0)
898− FAIL(ret);
896+ goto fail;
899897
900898 n = avio_read(pb, pkt->data + (pkt->size - to_read), to_read);
901899 if (n < to_read)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t